<?php

class Pdf extends Controller {

    function Pdf() {
        parent::Controller();
    }

    function index() {
//$this->pdf();

    }
function make()
{
//print 111;
     $this->load->plugin('to_pdf');
     // page info here, db calls, etc.     
     $html = $this->load->view('docs/dogovor', $data, true);
    
     pdf_create($html, 'dogovor');
}
}

